
<form id="pagerForm" method="post" action="<?php echo site_url('admin/payment/consumption');?>">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="<?php echo $numPerPage;?>" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<?php echo site_url('admin/payment/consumption');?>" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					用户名：<input type="text" name="username" />
				</td>
				<td>
				开始日期：<input type="text" name="start_time" class="date" dateFmt="y-M-d" minDate="2000-01-01" maxDate="2020-12-31"/>				
				</td>
				<td>
				结束日期：<input type="text" name="end_time" class="date" dateFmt="y-M-d" minDate="2000-01-01" maxDate="2020-12-31"/>				
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="delete" href="<?php echo site_url('admin/payment/del_consumption');?>?tid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<!---<li><a class="edit" href="<?php echo site_url('admin/payment/edit_consumption');?>?tid={sid_user}" target="navTab"><span>修改</span></a></li>-->
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="120">用户名称</th>
				<th width="100">消费金额</th>
				<th width="100" align="center">消费时间</th>
                                <th width="300" align="center">消费原因</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
		<?php  foreach($data as $item):?>
			<tr target="sid_user" rel="<?php echo $item->id;?>">
				<td><?php echo $item->username;?></td>
				<td><?php echo $item->price;?></td>
				<td><?php echo date('Y年m月d日',$item->time);?></td>
				<td><?php echo $item->content;?></td>
				<td></td>
			</tr>
		<?php endforeach;?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <?php if($numPerPage == 20):?> selected="selected"<?php endif;?>>20</option>
				<option value="50" <?php if($numPerPage == 50):?> selected="selected"<?php endif;?>>50</option>
				<option value="100" <?php if($numPerPage == 100):?> selected="selected"<?php endif;?>>100</option>
				<option value="200" <?php if($numPerPage == 200):?> selected="selected"<?php endif;?>>200</option>
			</select>
			<span>条，共<?php echo $count;?>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo $count;?>" numPerPage="<?php echo $numPerPage;?>" pageNumShown="10" currentPage="1"></div>

	</div>
</div>